/*!
 * tykhome - user.js
 * Author tykhome <yongketian@gmail.com>
 */

/**
 * Module dependencies.
 */

var mongoose = require('mongoose');
var Schema = mongoose.Schema;

var UserSchema = new Schema({
	name: { type: String },
	pass: { type: String },
	email: { type: String }
});

UserSchema.index({name: 1});
UserSchema.index({email: 1}, {unique: true});

mongoose.model('User', UserSchema);
